#ifndef SPOTLIGHTELEMENT_HPP
#define SPOTLIGHTELEMENT_HPP

#include <Box2D.h>

#include "ActionableElement.hpp"
#include "LightElement.hpp"

class SpotlightElement : public ActionableElement {
protected:
    virtual void turnOn();
    virtual void turnOff();

public:
    LightElement* light;
    b2Vec2* supportBarDirection;

    SpotlightElement(float x, float y, float angle, float arc, float length, LightElement::Type lightType, b2World* world);
    ~SpotlightElement();

    virtual bool isSpotlight();
    void setAngle(float angle);
};

#endif
